$ErrorActionPreference = 'SilentlyContinue'

# 列出与构建相关的进程（Electron/Chromium/Headless_Shell/AutoTools），输出为 JSON 压缩格式
# 测试中文提交信息编码
Get-CimInstance Win32_Process |
  Where-Object { $_.Name -match '^(?i)(electron|chromium|headless_shell|autotools).*' } |
  Select-Object Name, ProcessId, ExecutablePath, CommandLine |
  ConvertTo-Json -Compress


